/*
 * Copyright 2018-present datagear.tech
 *
 * This file is part of DataGear.
 *
 * DataGear is free software: you can redistribute it and/or modify it under the terms of
 * the GNU Lesser General Public License as published by the Free Software Foundation,
 * either version 3 of the License, or (at your option) any later version.
 *
 * DataGear is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with DataGear.
 * If not, see <https://www.gnu.org/licenses/>.
 */

package org.datagear.web.util.accesslatch;

/**
 * 用户名登录{@linkplain AccessLatch}。
 * 
 * @author datagear@163.com
 *
 */
public class UsernameLoginLatch extends ResourceAccessLatch
{
	public static final String RESOURCE = UsernameLoginLatch.class.getName();

	public UsernameLoginLatch()
	{
		super();
	}

	public UsernameLoginLatch(AccessLatch accessLatch)
	{
		super(RESOURCE, accessLatch);
	}

	@Override
	public void setResourceId(String resourceId)
	{
		throw new UnsupportedOperationException();
	}

	@Override
	public int remain(String username)
	{
		return super.remain(username);
	}

	@Override
	public boolean access(String username)
	{
		return super.access(username);
	}

	@Override
	public void clear(String username)
	{
		super.clear(username);
	}
}
